package com.tao.mytestgreendao;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;
import org.jetbrains.annotations.PropertyKey;

/**
 * reate by tao on{DATE}
 */
@Entity(nameInDb = "user")
public class UserEntity {
    @Id(autoincrement = true)
    Long id=0l;
    
    @Property(nameInDb = "name")
    String name="阿花";
    @Property(nameInDb = "age")
    Integer age=20;
    @Property(nameInDb = "sex")
    Integer sex=0;
    
    String detail ="啦啦";

    @Generated(hash = 1631368984)
    public UserEntity(Long id, String name, Integer age, Integer sex,
            String detail) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.detail = detail;
    }

    @Generated(hash = 1433178141)
    public UserEntity() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }
}
